package com.headwind.logistics.operation.mapper;


import com.headwind.logistics.common.pojo.FetchMoney;
import com.headwind.logistics.operation.dto.FetchMoneyPaymentTransportUserDto;
import com.headwind.logistics.operation.pojo.WithdrawMoney;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author 周鑫
 * @Date 2020/7/16 16:43
 * @Version 1.0
 * @DESCRIPTION 数据访问层接口
 */
@Mapper
public interface WithdrawMoneyDaoInter {

    /**
     * 查询所有和分页

     * @return dto集合
     */
    public List<FetchMoneyPaymentTransportUserDto> queryWithdrawMoneyDaoInter(@Param("page") Integer page, @Param("rows") Integer rows);


    /**
     * 根据id修改余额提现审核状态
     * @param checkMoneyId 主键id
     * @return int
     */
    public int updateWithdrawMoneyDaoInter(int checkMoneyId);

    /**
     * 根据id修改余额提现审核状态
     * @param checkMoneyId 主键id
     * @return int
     */
    public int updateWithdrawMoneyDaoInterTow(int checkMoneyId);

    /**
     * 根据id修改余额提现审核状态
     * @param checkMoneyId 主键id
     * @return int
     */
    public int updateWithdrawMoneyDaoInterThree(int checkMoneyId);

    /**
     * 根据id修改余额提现审核状态
     * @param checkMoneyId 主键id
     * @return int
     */
    public int updateWithdrawMoneyDaoInterFour(int checkMoneyId);

    /**
     * 根据id修改原因和状态
     * @param withdrawMoney 模型层
     * @return int
     */
    public int updateWithdrawMassageDaoInter(WithdrawMoney withdrawMoney);

    /**
     * 根据id修改原因和状态
     * @param withdrawMoney 模型层
     * @return  int
     */
    public int updateWithdrawMassageTowDaoInter(WithdrawMoney withdrawMoney);

    /**
     * 根据id修改提现金额
     * @param checkMoneyId 主键id
     * @param fetchPrice 提现金额
     * @param  money 余额
     * @return int
     */
    public int updateWithdrawFetchPriceDaoInter(Integer checkMoneyId, Double fetchPrice, Double money);
}
